﻿/*
 * User: David
 * Date: 29/06/2013
 * Time: 2:23 AM
 * 
 */
using System;
using System.Collections.Generic;
using HockeySimulator.Entities;

namespace HockeySimulator.Entities
{
	/// <summary>
	/// Team Sub-entity : DefenseLine.
	/// </summary>
	public class DefenseLine
	{
		private List<Defenseman> defensemen;
		
		public DefenseLine()
		{
			defaultDefenseLineInitialize();
		}
		
		public DefenseLine(List<Defenseman> D)
		{
			//TODO Sanity check, if not null/invalid and there's only 2
			defensemen = new List<Defenseman>(D);
		}
		
		public DefenseLine(Defenseman D1, Defenseman D2)
		{
			//TODO Sanity check, if both are not null/invalid
			defensemen = new List<Defenseman>();
			defensemen.Add(D1);
			defensemen.Add(D2);
		}
		
		private void defaultDefenseLineInitialize()
		{
			defensemen = new List<Defenseman>();
			defensemen.Add(new Defenseman());
			defensemen.Add(new Defenseman());
		}
	}
}
